export default {
  data() {
    return {};
  },
  methods: {
    jump(url) {
      if (
        url == "/pages/tabbar/index" ||
        url == "/pages/tabbar/lead" ||
        url == "/pages/tabbar/my"
      ) {
        uni.switchTab({
          url,
        });
        return;
      }
      uni.navigateTo({
        url,
      });
    },
    showToast(title, icon = "none") {
      uni.showToast({ title, icon });
    },
  },
};
